<form id="form" action="{:url('askCategory/edit')}">
<input type="hidden" name="id" value="{$info.id}"/>
<input type="hidden" name="picture" value="{$info.picture}" id="picture" />
<table class="formtable"> 
    <tr><th>分类名称:</th><td><input class="input" datatype="*" type="text" name="title" value="{$info.title}" /></td></tr>
    <tr><th>栏目排序:</th><td><input class="input w60" datatype="n" type="text" name="sort" value="{$info.sort}" /> <span class="gray fn-f12">数字越大越靠前</span></td></tr>
    <tr><th>图片样式</th><td><div class="img-review fn-cp">{if $info.picture}<img src="{$info.picture}">{/if}</div></td></tr>
    <tr>
        <th></th>
        <td>
            <input type="submit" value="确定" class="button button-blue submit" />
            <input type="reset" value="重置" class="button button-blank"/>
        </td>
    </tr>
</table>
</form>
<script type="text/javascript">
Do('base','layer','form',function(){
    $('#form').isForm();
    $(".img-review").click(function(){openwin('{:url("system/passport.common/upload")}')});
})
//添加图片
function setImg(show_src){
    $("#picture").val(show_src);
    $(".img-review").html('<img src="'+show_src+'">');  
}
</script>